import { getRequest, postRequest } from '@/libs/axios'
import qs from 'qs'

export const getApi = (data) => {
  return getRequest('/api', data)
}

export const getPostApi = (data) => {
  return postRequest('/api', data) // json格式
}

export const getPostApi2 = (data) => {
  return postRequest('/api', qs.stringify(data)) // xxx/unicode格式
}
